package com.study.design.pattern.pattern.structural.proxy.staticproxy;

/**
 * @Author: gongsl
 * @Date: 2025-03-19 21:31
 */
public class Test {
    public static void main(String[] args) {
        // 创建目标对象
        PaymentService paymentService = new PaymentServiceImpl();
        // 创建代理对象，传入目标对象
        PaymentService proxy = new PaymentServiceProxy(paymentService);
        // 通过代理对象调用方法
        proxy.pay("1000");
    }
}
